from django.conf.urls import url
from django.urls import path

from . import views

urlpatterns = [
    url(r'^login/$', views.LoginView, name="登录"),
    path(r'info/', views.UserInfoView.as_view({'post': 'post'}), name="获取用户信息"),
    path(r'update_nickname/', views.UserInfoView.as_view({'post': 'update_nickname'}), name="修改昵称"),
    path(r'create/', views.CreateView, name="注册"),
    path(r'reset/', views.ResetView, name="重置密码"),
    path(r'exit/', views.exitLoginView, name="重置密码"),
    path(r'region/p/', views.RegionView.as_view({'get': 'province'}), name="重置密码"),
    path(r'region/c/', views.RegionView.as_view({'get': 'city'}), name="重置密码"),
    path(r'region/d/', views.RegionView.as_view({'get': 'district'}), name="重置密码"),
    path(r'wx/login/', views.WxLogin.as_view(), name="微信登录"),
]
